﻿<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Channel9Kinect="clr-namespace:Channel9Kinect" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:KinectExtensions_Interactivity="clr-namespace:KinectExtensions.Interactivity;assembly=KinectExtensions" x:Class="Channel9Kinect.Main" mc:Ignorable="d" d:DesignHeight="588" d:DesignWidth="1003.2" Title="Main">

	<Page.Resources>
		<Channel9Kinect:MainViewModel x:Key="vm" />
	</Page.Resources>

	<Grid DataContext="{StaticResource vm}">

		<Rectangle Stretch="Fill">
			<Rectangle.Fill>
				<LinearGradientBrush StartPoint="0.417188,-0.0851852" EndPoint="0.417188,1.02593">
					<GradientStop Color="#FF018396" Offset="0.224638" />
					<GradientStop Color="#FF005966" Offset="0.768116" />
				</LinearGradientBrush>
			</Rectangle.Fill>
		</Rectangle>
		<TextBlock TextAlignment="Left" Text="Channel 9" Foreground="White" FontFamily="Segoe UI" FontSize="60" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="150,44,0,0" d:LayoutOverrides="HorizontalAlignment" />
		<Grid Height="305" VerticalAlignment="Center" Width="770" HorizontalAlignment="Center">

			<Canvas x:Name="home" Width="420" Height="300" Margin="0,5,0,0" HorizontalAlignment="Left" d:LayoutOverrides="VerticalAlignment">
				<Rectangle x:Name="Rectangle" Width="420" Height="303" Stretch="Fill" Fill="#FFF3F1E5" />
				<Image Source="Assets/twit.png" Width="280" Height="270" Canvas.Top="-115" />
				<TextBlock FontFamily="Segoe UI" FontSize="32.0003" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="10" Canvas.Top="89" Width="297.876" Height="141.391" TextWrapping="Wrap"><TextBlock.RenderTransform>
	<TransformGroup>
		<ScaleTransform ScaleY="1.333" ScaleX="1.333"/>
		<SkewTransform/>
		<RotateTransform/>
		<TranslateTransform/>
	</TransformGroup>
					</TextBlock.RenderTransform><Run Foreground="#FF006C7B" Language="fr-fr" Text="Après-midi du dev"/><LineBreak/><Run Foreground="#FF006C7B" Language="fr-fr" Text="Kinect for windows SDK"/></TextBlock>
			</Canvas>
			<Grid HorizontalAlignment="Right">
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="Auto" />
					<ColumnDefinition Width="Auto" />
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition Height="Auto" />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>

				<StackPanel Width="160" Height="150" Grid.Column="0" Grid.Row="0" Margin="10,5,0,0">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonDown">
							<i:InvokeCommandAction Command="{Binding NavigateToWeek}" />
						</i:EventTrigger>
						<KinectExtensions_Interactivity:KinectDelayActionTrigger>
							<i:InvokeCommandAction Command="{Binding NavigateToWeek}" />
						</KinectExtensions_Interactivity:KinectDelayActionTrigger>
						<KinectExtensions_Interactivity:VoiceTrigger BarHintText="week" VoiceString="week">
							<i:InvokeCommandAction Command="{Binding NavigateToWeek}" />
						</KinectExtensions_Interactivity:VoiceTrigger>
					</i:Interaction.Triggers>
					<Image Width="160" Height="120" Source="Assets/week.jpg" />
					<Grid>
						<Rectangle Width="160" Height="30" Stretch="Fill">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="3.70813e-007,0.500001" EndPoint="1,0.500001">
									<GradientStop Color="#7D004852" Offset="0.224638" />
									<GradientStop Color="#7D004D58" Offset="0.789855" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<TextBlock TextAlignment="Left" FontFamily="Segoe UI" FontSize="16" Width="Auto" Height="Auto" Text="This Week" Foreground="#FFFFFFFF" />
					</Grid>
				</StackPanel>

				<StackPanel Width="160" Height="150" Grid.Column="1" Grid.Row="0" Margin="10,5,0,0">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonDown">
							<i:InvokeCommandAction Command="{Binding NavigateToPing}" />
							<i:InvokeCommandAction Command="{Binding NavigateToPing}" />
						</i:EventTrigger>
						<KinectExtensions_Interactivity:VoiceTrigger BarHintText="ping" VoiceString="ping">
							<i:InvokeCommandAction Command="{Binding NavigateToPing}" />
						</KinectExtensions_Interactivity:VoiceTrigger>
					</i:Interaction.Triggers>
					<Image Width="160" Height="120" Source="Assets/ping.jpg" />
					<Grid>
						<Rectangle Width="160" Height="30" Stretch="Fill">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="1.85407e-007,0.500001" EndPoint="1,0.500001">
									<GradientStop Color="#7D004852" Offset="0.224638" />
									<GradientStop Color="#7D004D58" Offset="0.789855" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<TextBlock TextAlignment="Left" FontFamily="Segoe UI" FontSize="16" Width="Auto" Height="Auto" Text="Ping" Foreground="#FFFFFFFF" />
					</Grid>
				</StackPanel>

				<StackPanel Width="160" Height="150" Grid.Column="0" Grid.Row="1" Margin="10,5,0,0">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonDown">
							<i:InvokeCommandAction Command="{Binding NavigateToC4F}" />
						</i:EventTrigger>
						<KinectExtensions_Interactivity:KinectDelayActionTrigger>
							<i:InvokeCommandAction Command="{Binding NavigateToC4F}" />
						</KinectExtensions_Interactivity:KinectDelayActionTrigger>
						<KinectExtensions_Interactivity:VoiceTrigger BarHintText="fun" VoiceString="fun">
							<i:InvokeCommandAction Command="{Binding NavigateToC4F}" />
						</KinectExtensions_Interactivity:VoiceTrigger>
					</i:Interaction.Triggers>
					<Image Width="160" Height="120" Source="Assets/ch9.png" />
					<Grid>
						<Rectangle Width="160" Height="30" Stretch="Fill">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="3.70813e-007,0.500001" EndPoint="1,0.500001">
									<GradientStop Color="#7D004852" Offset="0.224638" />
									<GradientStop Color="#7D004D58" Offset="0.789855" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<TextBlock TextAlignment="Left" FontFamily="Segoe UI" FontSize="16" Width="Auto" Height="Auto" Text="Coding 4 Fun" Foreground="#FFFFFFFF" />
					</Grid>
				</StackPanel>

				<StackPanel Width="160" Height="150" Grid.Column="1" Grid.Row="1" Margin="10,5,0,0">
					<i:Interaction.Triggers>
						<i:EventTrigger EventName="MouseLeftButtonDown">
							<i:InvokeCommandAction Command="{Binding NavigateToWebCamp}" />
						</i:EventTrigger>
						<KinectExtensions_Interactivity:KinectDelayActionTrigger>
							<i:InvokeCommandAction Command="{Binding NavigateToWebCamp}" />
						</KinectExtensions_Interactivity:KinectDelayActionTrigger>
						<KinectExtensions_Interactivity:VoiceTrigger BarHintText="camp" VoiceString="camp">
							<i:InvokeCommandAction Command="{Binding NavigateToWebCamp}" />
						</KinectExtensions_Interactivity:VoiceTrigger>
					</i:Interaction.Triggers>
					<Image Width="160" Height="120" Source="Assets/webtv.png" />
					<Grid>
						<Rectangle Width="160" Height="30" Stretch="Fill">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="1.85407e-007,0.500001" EndPoint="1,0.500001">
									<GradientStop Color="#7D004852" Offset="0.224638" />
									<GradientStop Color="#7D004D58" Offset="0.789855" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>

						<TextBlock TextAlignment="Left" FontFamily="Segoe UI" FontSize="16" Width="Auto" Height="Auto" Text="Web Camp TV" Foreground="#FFFFFFFF" />
					</Grid>
				</StackPanel>
			</Grid>

		</Grid>

	</Grid>
</Page>